package com.demo.springcloud.service;

import com.demo.springcloud.pojo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author chenyuan
 * @date 2020/12/24 11:05
 */
// 配置需要调用的微服务
@FeignClient(value = "seata-account-service")
public interface TAccountService {
	@GetMapping(value = "/account/decrease")
	CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
